<?php if(!class_exists('raintpl')){exit;}?><?php $tpl = new RainTPL;$tpl_dir_temp = self::$tpl_dir;$tpl->assign( $this->var );$tpl->draw( dirname("header") . ( substr("header",-1,1) != "/" ? "/" : "" ) . basename("header") );?>
<?php $tpl = new RainTPL;$tpl_dir_temp = self::$tpl_dir;$tpl->assign( $this->var );$tpl->draw( dirname("navigator") . ( substr("navigator",-1,1) != "/" ? "/" : "" ) . basename("navigator") );?>

<div id = "container">
	<?php if( $page==6 ){ ?>
	<h1 class = "header">เพิ่มรายชื่อผู้บริหารชุดปัจจุบัน</h1>
	<?php } ?>
	<?php if( $page==7 ){ ?>
	<h1 class = "header">เพิ่มรายชื่อคณะกรรมการประกันคุณภาพ</h1>
	<?php } ?>

	<form action = '<?php echo $action;?>' method = 'post' enctype='multipart/form-data' id = "staff-form">
		<input type = "hidden" name = "id" value = "<?php echo $id;?>">
		<input type = "hidden" name = "page" value = "<?php echo $page;?>">
		<ul class = 'form'>
			<li class = 'node'>
				<label for='name' class = 'label'>ชื่อ- นามสกุล : </label>
				<input type = 'text' id = 'name' class = 'input validate[required] text-input w300' name = 'name' value = "<?php echo $data['name'];?>">
				<span class='require'>*</span>
			</li>
			<li class = 'node'>
				<label for='position' class = 'label'>ตำแหน่ง : </label>
				<input type = 'text' id = 'position' class = 'input validate[required] text-input w300' name = 'position' value = "<?php echo $data['position'];?>">
				<span class='require'>*</span>
			</li>
			<li class = 'node'>
				<label for='picture' class = 'label'>รูป : </label>
				<input type = "file" name = "picture" id = "picture">
				<span class = 'desc'>150 x 200 pixel (*.jpg, *.png)</span>
				<br>
				<br>
				<?php if( $data['picture'] != '' ){ ?>
					<img src = "<?php echo $data['picture'];?>">
				<?php } ?>
			</li>
			<li>
				<input type = 'submit' value = ' ตกลง ' class = 'submit'>
				<input type = 'button' value = ' ยกเลิก ' class = 'submit' onclick = "location.href='sar.php?id=<?php echo $page;?>'">
			</li>
		</ul>
	</form>
</div>

<?php $tpl = new RainTPL;$tpl_dir_temp = self::$tpl_dir;$tpl->assign( $this->var );$tpl->draw( dirname("footer") . ( substr("footer",-1,1) != "/" ? "/" : "" ) . basename("footer") );?>